<?php


namespace app\api\validate;


use think\Validate;

class CommonValidate
{
    public static function generateShortLink($data)
    {
        $rule = [
            'url' => 'require|url',
        ];
        $message = [
            'url.require' => "请输入长链接",
        ];
        return \app\common\validate\CommonValidate::check($rule, $message, $data);
    }
}